<div class="discounts-list" [ngStyle]="tagData.cssStyle | styleFilter">
    <div class="firstData" *ngIf="tagData.data?.firstData">
        <div class="top">
            <img [src]="tagData.data.firstData.icon">
            <span [ngStyle]="tagData.data?.firstData?.labelCssStyle | styleFilter">{{tagData.data?.firstData?.label}}</span>
        </div>
        <div class="data">
            <ng-container *ngFor="let item of tagData.data?.firstData?.data">
                <div class="item" [ngStyle]="item.cssStyle | styleFilter" appDebounceClick (debounceClick)="openPage(item.link,$event)">
                    <img [src]="item.imgUrl" [ngStyle]="item.imgUrlCssStyle | styleFilter">
                    <p [ngStyle]="item.priceCssStyle | styleFilter">
                        <span [ngStyle]="item.unitCssStyle | styleFilter">{{item.unit}}</span>{{item.price}}</p>
                </div>
            </ng-container>
        </div>
        <img class="bg" [src]="tagData.data.firstData.imgUrl" [ngStyle]="tagData.data.firstData.imgUrlCssStyle | styleFilter"
            onerror="this.src='https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_1680835225820eb23d8ae16a30c80cb1f40e384640d54.png'">
    </div>
    <div class="secondData" *ngIf="tagData.data?.secondData">
        <div class="top">
            <img [src]="tagData.data.secondData.icon">
            <span [ngStyle]="tagData.data.secondData.labelCssStyle | styleFilter">{{tagData.data.secondData.label}}</span>
        </div>
        <div class="data">
            <ng-container *ngFor="let item of tagData.data.secondData.data">
                <div class="item" [ngStyle]="item.cssStyle | styleFilter" appDebounceClick (debounceClick)="openPage(item.link,$event)">
                    <img [src]="item.imgUrl" [ngStyle]="item.imgUrlCssStyle | styleFilter">
                    <p [ngStyle]="item.priceCssStyle | styleFilter">
                        <span [ngStyle]="item.unitCssStyle | styleFilter">{{item.unit}}</span>{{item.price}}</p>
                </div>
            </ng-container>
        </div>
        <img class="bg" [src]="tagData.data.secondData.imgUrl" [ngStyle]="tagData.data.secondData.imgUrlCssStyle | styleFilter"
            onerror="this.src='https://zeno-img.oss-cn-shenzhen.aliyuncs.com/file_168083533630849a79096f672213e88e4516c86dae54c.png'">
    </div>
</div>